package com.gsoe.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户刷题记录
 * </p>
 *
 * @author xiaoma
 * @since 2024-11-04
 */
@Getter
@Setter
public class Judge implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 题目id
     */
    private Long problemId;

    private String problemDescribe;

    /**
     * 输入
     */
    private String input;

    /**
     * 结果
     */
    private Boolean result;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
